package com.lwlk.zdk.mapper.pw;

import com.lwlk.zdk.model.Encapsulation.EncapsulationAssess;
import com.lwlk.zdk.model.pw.pwAssessGrade;
import com.lwlk.zdk.model.pw.pwAssessGradeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pwAssessGradeMapper {
    int countByExample(pwAssessGradeExample example);

    int deleteByExample(pwAssessGradeExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(pwAssessGrade record);

    int insertSelective(pwAssessGrade record);

    List<pwAssessGrade> selectByExample(pwAssessGradeExample example);

    pwAssessGrade selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") pwAssessGrade record, @Param("example") pwAssessGradeExample example);

    int updateByExample(@Param("record") pwAssessGrade record, @Param("example") pwAssessGradeExample example);

    int updateByPrimaryKeySelective(pwAssessGrade record);

    int updateByPrimaryKey(pwAssessGrade record);

    List<EncapsulationAssess> selectAssess(@Param("assessId") Integer assessId);

    List<Map<String, Object>> selectAssessAll(@Param("platformId")Integer platformId,@Param("assessName")String assessName,@Param("assessPeriod") String assessPeriod,@Param("assessType") String assessType);

    int selectByAssessPeriod(@Param("assessPeriod") String assessPeriod,@Param("assessType")String assessType);

    List<Map<String, Object>> selectAssessGrade(@Param("id") Integer id,@Param("indexName")String indexName);

    int selectByType(@Param("type") String type,@Param("assessType") String assessType);

    List<Map> selectAssessGradeId(@Param("assessObject") String assessObject, @Param("assessType") String assessType,@Param("type") String type);

    int selectNumberOne(@Param("assessNumber") String assessNumber);
}